'use strict';

/**
 * schema
 * @description blog 数据格式校验
 */
module.exports = {
  type: 'object',
  // 属性
  properties: {
    content: {
      type: 'string',
      minLength: 1,
      maxLength: 500,
    },
    image: {
      type: 'string',
      minLength: 5,
      maxLength: 255,
    },
  },
  $async: true, // 异步
  additionalProperties: true,
};
